package com.monika.service.controller;

import com.monika.main.system.annotation.Anonymous;
import com.monika.main.system.annotation.WebLog;
import com.monika.main.system.enums.OperatorType;
import com.monika.main.system.exception.BaseException;
import com.monika.main.system.mq.MsgEvent;
import com.monika.main.system.mq.MsgPublish;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author whh
 * @Date: 2023/04/15/ 2:37
 * @description
 */
@RestController
public class HelloController {


//    @WebLog(operatorType = OperatorType.MANAGE)
    @Anonymous
    @RequestMapping("/hello")
    public void sayHello(String name){
//        System.out.println("hello "+name);

        MsgPublish.publish("hello world ============>>>>");
    }
}
